package 递归;

/**
 * @author 帅小伙
 * @date 2021/12/28
 * @description
 */
public class Demo02上楼梯 {

    public int jumpFloorII(int target) {
        if(target <= 2){
            return target;
        }
        return (int) Math.pow(2, target - 1);

    }
}
